<div class="form">


<?php $form = $this->beginWidget('GxActiveForm', array(
	'id' => 'shopping-cart-by-user-form',
	'enableAjaxValidation' => false,
));
?>

	<p class="note">
		<?php echo Yii::t('app', 'Fields with'); ?> <span class="required">*</span> <?php echo Yii::t('app', 'are required'); ?>.
	</p>

	<?php echo $form->errorSummary($model); ?>

		<div class="row">
		<div class="rowLabel"><?php echo $form->labelEx($model,'user_id'); ?>
</div>
		<div class="rowControl"><?php echo $form->textField($model, 'user_id'); ?>
		<?php echo $form->error($model,'user_id'); ?>
		</div><!-- row -->
                </div>
        
		<div class="row">
		<div class="rowLabel"><?php echo $form->labelEx($model,'class_id'); ?>
</div>
		<div class="rowControl"><?php echo $form->textField($model, 'class_id'); ?>
		<?php echo $form->error($model,'class_id'); ?>
		</div><!-- row -->
                </div>
        
		<div class="row">
		<div class="rowLabel"><?php echo $form->labelEx($model,'course_id'); ?>
</div>
		<div class="rowControl"><?php echo $form->textField($model, 'course_id'); ?>
		<?php echo $form->error($model,'course_id'); ?>
		</div><!-- row -->
                </div>
        
		<div class="row">
		<div class="rowLabel"><?php echo $form->labelEx($model,'batch_id'); ?>
</div>
		<div class="rowControl"><?php echo $form->textField($model, 'batch_id'); ?>
		<?php echo $form->error($model,'batch_id'); ?>
		</div><!-- row -->
                </div>
        
		<div class="row">
		<div class="rowLabel"><?php echo $form->labelEx($model,'qty'); ?>
</div>
		<div class="rowControl"><?php echo $form->textField($model, 'qty'); ?>
		<?php echo $form->error($model,'qty'); ?>
		</div><!-- row -->
                </div>
        
		<div class="row">
		<div class="rowLabel"><?php echo $form->labelEx($model,'batchtime'); ?>
</div>
		<div class="rowControl"><?php echo $form->textField($model, 'batchtime', array('maxlength' => 100)); ?>
		<?php echo $form->error($model,'batchtime'); ?>
		</div><!-- row -->
                </div>
        
		<div class="row">
		<div class="rowLabel"><?php echo $form->labelEx($model,'batchdate'); ?>
</div>
		<div class="rowControl"><?php $form->widget('zii.widgets.jui.CJuiDatePicker', array(
			'model' => $model,
			'attribute' => 'batchdate',
			'value' => $model->batchdate,
			'options' => array(
				'showButtonPanel' => true,
				'changeYear' => true,
				'dateFormat' => 'yy-mm-dd',
				),
			));
; ?>
		<?php echo $form->error($model,'batchdate'); ?>
		</div><!-- row -->
                </div>
        
		<div class="row">
		<div class="rowLabel"><?php echo $form->labelEx($model,'total_amt'); ?>
</div>
		<div class="rowControl"><?php echo $form->textField($model, 'total_amt'); ?>
		<?php echo $form->error($model,'total_amt'); ?>
		</div><!-- row -->
                </div>
        
		<div class="row">
		<div class="rowLabel"><?php echo $form->labelEx($model,'discount_txt'); ?>
</div>
		<div class="rowControl"><?php echo $form->textArea($model, 'discount_txt'); ?>
		<?php echo $form->error($model,'discount_txt'); ?>
		</div><!-- row -->
                </div>
        
		<div class="row">
		<div class="rowLabel"><?php echo $form->labelEx($model,'gift_to_user_email'); ?>
</div>
		<div class="rowControl"><?php echo $form->textField($model, 'gift_to_user_email', array('maxlength' => 90)); ?>
		<?php echo $form->error($model,'gift_to_user_email'); ?>
		</div><!-- row -->
                </div>
        

<div class="row">
<?php
echo GxHtml::submitButton(Yii::t('app', 'Save'));
$this->endWidget();
?>
</div>
</div>
<!-- form -->
